In AEM 6.5 there is no out-of-the-box (OOTB) solution to archive and restore content fragments like there is for pages.
If this is required - you have to create a custom service or event handler - before deleting a content fragment, move it to an "archive" location in the JCR repository. same for restore archived content fragment.
some sample code:
@1790552
public class ContentFragmentArchivingService {
@3214626
private ResourceResolverFactory resolverFactory;
public void archiveContentFragment(String pathToFragment) throws PersistenceException {
ResourceResolver resolver = resolverFactory.getServiceResourceResolver(null);
//ContentFragment contentFragment = resource.adaptTo(ContentFragment.class);
Session session = resolver.adaptTo(Session.class);
String archivePath = "/content/dam/archive/" + StringUtils.substringAfterLast(pathToFragment, "/");
session.move(pathToFragment, archivePath);
session.save();
}
}