remove#

barecat._api.Barecat.remove(item)[source]#

Remove (delete) a file from the archive.

Technically, the data is not erased from the shard file at this point, only the corresponding row in the index database is removed. An exception is when the file is the last file in the shard, in which case the shard file is truncated to the end of the file.

Parameters:

item (Union[BarecatFileInfo, str]) – Either a BarecatFileInfo object, or a path to a file within the archive.

Raises: