diff --git a/flextype/Entries.php b/flextype/Entries.php index b64ae20c..8294ed26 100755 --- a/flextype/Entries.php +++ b/flextype/Entries.php @@ -282,10 +282,21 @@ class Entries } } + /** + * Delete entry. + * + * @param string $entry Entry + * @return bool True on success, false on failure. + */ + public static function delete(string $entry) : bool + { + return Filesystem::delete(PATH['entries'] . '/' . $entry); + } + /** * Check whether entry exists. * - * @param string $entry Entry to find + * @param string $entry Entry * @return bool */ public static function has(string $entry) : bool